package com.neusoft.chenhanhua.d0923;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Datelxi {

	public static void main(String[] args) {
		System.currentTimeMillis();
		SimpleDateFormat sdf=new SimpleDateFormat();
		Calendar cal=Calendar.getInstance();
		//System.out.println(cal.getTime());
		Date de=new Date();
		System.out.println(de.toLocaleString());
		//System.out.println(de);
		//System.out.println(sdf.format(de));
		sdf.applyPattern("yyyy-MM-dd hh:mm:ss");//指定日期格式
		//System.out.println(sdf.format(de));
	}
}
